<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0050)http://localhost:8080/HouseRent/manage!list.action -->
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>云和租房 - 用户管理</title>
<meta content="text/html; charset=utf-8" http-equiv=content-type><link 
rel=stylesheet type=text/css href="../css/style.css">

<meta name=generator ></head>

    <script type="text/javascript" src="../jquery/jquery-1.8.3.js"></script>
    <script>
   
    function checkBook(page){
    	
     $(function(){ 
       $.ajax({
    	 type:"POST",
    	 url:"guan_guanli",
    	 data:{
    		 pageIndex:page,
    	 },
    	  success:function(data){
    		
    		var xin ="";
    		
    		$.each(data.house, function(i, val){
    		xin+="<tr class=odd><td class=house-thumb><span><a href='details.htm' target='_blank'><img src='images/"+val.pic+"' width='100' height='75' alt=''></a></span></td>"	
    		xin+="<td><dl><dt><a href='details.htm' target='_blank'>"+val.title+"</a></dt>"
    		xin+="<dd>"+val.street_id.district_id.dname+val.street_id.sname+","+val.floorage+"平米<br>联系方式："+val.contact+"</dd></dl></td>"
    	    xin+="<td class=house-type><label class=ui-green><a href='UpdateAction?id="+val.id+"'>修改</a></label></td><td class=house-price><label class=ui-green><input value='删    除' onclick='del("+val.id+")' type='button' name=search></label></td></tr> "
    	    
    		});
    		
    		
    		$("#odd").html(xin);
    		$("#shangYiYe").attr("onclick","checkBook("+(data.currPage-1)+")");
			$("#pageIndex").val(data.currPage);
			$("#xiaYiYe").attr("onclick","checkBook("+(data.currPage+1)+")");
    		
    	 }
    	})
     
       })
     }
	function del(obj) {

		var dele = "del_del";
		$.post(dele, {
			"id" : obj
		}, function(data) {
			checkBook(data.currPage);
		});

	}
    
    
    

</script>


<body onload="checkBook(1)">
<div id=header class=wrap>
<div id=logo><img src="../images/logo.gif"></div>
<div class=search><label class="ui-green searchs"><a href="fabu.htm" title="">发布房屋信息</a></label> 
<label class=ui-green><input onclick='document.location="index.jsp"' value="退       出" type=button name=search></label> 
</div></div>
<div class="main wrap">
<div id=housearea>
<table class=house-list>
  <tbody id="odd">
  <!-- <tr>
    <td class=house-thumb><span><a href="details.htm" target="_blank"><img src="../images/thumb_house.gif" width="100" height="75" alt=""></a></span></td>
    
    <td>
      
      <dl>
        <dt><a href="details.htm" target="_blank">123</a></dt>
        <dd>海淀区中关村大街,123平米<br>联系方式：123 </dd></dl></td>
    <td class=house-type><label class=ui-green><input onclick=update(46) value="修    改" type=button name=search></label></td>
    <td class=house-price><label class=ui-green><input value="删    除" type=button name=search></label></td></tr> -->
  <!-- <tr class=odd> -->
<!--     <td class=house-thumb><span><a href="details.htm" target="_blank"><img src="../images/thumb_house.gif" width="100" height="75" alt=""></a></span></td>
    <td>
      <dl>
        <dt><a href="details.htm" target="_blank">jjjj</a></dt>
        <dd>海淀区中关村大街,123平米<br>联系方式：ff </dd></dl></td>
    <td class=house-type><label class=ui-green><input onclick=update(47) value="修    改" type=button name=search></label></td>
    <td class=house-price><label class=ui-green><input value="删    除" type=button name=search></label></td> -->
    
   <!--  </tr> -->
  <!-- 
  <tr>
    <td class=house-thumb><span><a href="details.htm" target="_blank"><img src="../images/thumb_house.gif" width="100" height="75" alt=""></a></span></td>
    <td>
      <dl>
        <dt><a href="details.jsp" target="_blank">大房子</a></dt>
        <dd>海淀区中关村大街,100平米<br>联系方式：123456789 </dd></dl></td>
    <td class=house-type><label class=ui-green><input onclick=update(6) value="修    改" type=button name=search></label></td>
    <td class=house-price><label class=ui-green><input value="删    除" type=button name=search></label></td></tr>
     -->
    </tbody></table></div>
<div class=pager>
<ul>
   <li class=current><a href="#" id="shouYe" onclick="checkBook(1)">首页</a></li>
  <li><a href="#" id="shangYiYe" onclick="checkBook()">上一页</a></li>
  <li><a href="#" id="xiaYiYe" onclick="checkBook()">下一页</a></li>
  <li><a href="#" id="weiYe" onclick="checkBook(1000)">末页</a></li>
   
   </ul>
   
   <span class=total>1/2页</span></div></div>
<div id=footer class=wrap>
<dl>
  <dt>云和租房 © 2010 云和 京icp证1000001号</dt>
  <dd>关于我们 · 联系方式 · 意见反馈 · 帮助中心</dd></dl></div>
  </body>

  
  
  </html>
